package com.bt.lms.ui.action.divide.plan;

import com.bt.lms.ui.vo.PageSkipInfo;
import com.bt.lms.ui.page.common.action.pagerecord.SeparateClassLabAction;
import com.bt.lms.ui.page.classes.ViewShiftResult;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.scene.layout.Pane;

public class ViewClassAction implements EventHandler {
    /**
     * 界面跳转信息
     */
    private PageSkipInfo pageSkipInfo;
    @Override
    public void handle(Event event) {

        ViewShiftResult viewShiftResult = new ViewShiftResult(pageSkipInfo);

        Pane pane = SeparateClassLabAction.pageSkipInfo.getPane();
        Integer index = SeparateClassLabAction.pageSkipInfo.getIndex();
        pane.getChildren().set(index, viewShiftResult);

    }
}
